package com.jadeen.entity.domain;

import com.jadeen.common.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 资源链接对象 resource_link
 * 
 * @author jadeen
 * @date 2025-08-08
 */
public class ResourceLink extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 链接ID */
    private Long linkId;

    /** 资源ID */

    private Long resourceId;

    /** 平台类型 */

    private String platform;

    /** 资源链接 */

    private String linkUrl;

    /** 提取码 */

    private String password;

    /** 有效性（0失效 1有效） */

    private String validStatus;

    /** 是否主链接（0否 1是） */

    private String isPrimary;

    /** 状态（0正常 1停用） */

    private String status;

    /** 删除标志（0存在 2删除） */
    private String delFlag;

    public void setLinkId(Long linkId) 
    {
        this.linkId = linkId;
    }

    public Long getLinkId() 
    {
        return linkId;
    }

    public void setResourceId(Long resourceId) 
    {
        this.resourceId = resourceId;
    }

    public Long getResourceId() 
    {
        return resourceId;
    }

    public void setPlatform(String platform) 
    {
        this.platform = platform;
    }

    public String getPlatform() 
    {
        return platform;
    }

    public void setLinkUrl(String linkUrl) 
    {
        this.linkUrl = linkUrl;
    }

    public String getLinkUrl() 
    {
        return linkUrl;
    }

    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }

    public void setValidStatus(String validStatus) 
    {
        this.validStatus = validStatus;
    }

    public String getValidStatus() 
    {
        return validStatus;
    }

    public void setIsPrimary(String isPrimary) 
    {
        this.isPrimary = isPrimary;
    }

    public String getIsPrimary() 
    {
        return isPrimary;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("linkId", getLinkId())
            .append("resourceId", getResourceId())
            .append("platform", getPlatform())
            .append("linkUrl", getLinkUrl())
            .append("password", getPassword())
            .append("validStatus", getValidStatus())
            .append("isPrimary", getIsPrimary())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
